<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Awesome-pyecharts</title>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/jquery.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/jquery-ui.min.js"></script>
        <script type="text/javascript" src="https://assets.pyecharts.org/assets/ResizeSensor.js"></script>

            <link rel="stylesheet"  href="https://assets.pyecharts.org/assets/jquery-ui.css">

</head>
<body>
    <style>.box {  }; </style>
        <button onclick="downloadCfg()">Save Config</button>
    <div class="box">
                <div id="d13dde5deca9455783577e44e53b5511" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_d13dde5deca9455783577e44e53b5511 = echarts.init(
            document.getElementById('d13dde5deca9455783577e44e53b5511'), 'white', {renderer: 'canvas'});
        var option_d13dde5deca9455783577e44e53b5511 = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "palevioletred",
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "bar",
            "name": "\u5e73\u5747\u63a8\u8350\u6307\u6570",
            "legendHoverLink": true,
            "data": [
                86.0,
                85.0,
                83.0,
                86.0,
                77.0,
                86.0,
                77.0,
                84.0,
                89.0,
                83.0,
                85.0
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        }
    ],
    "legend": [
        {
            "data": [
                "\u5e73\u5747\u63a8\u8350\u6307\u6570"
            ],
            "selected": {
                "\u5e73\u5747\u63a8\u8350\u6307\u6570": true
            },
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5
    },
    "xAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "data": [
                "\u793e\u4f1a\u5c0f\u8bf4",
                "\u60c5\u611f\u5c0f\u8bf4",
                "\u9752\u6625\u6587\u5b66",
                "\u79d1\u5e7b\u7ecf\u5178",
                "\u6218\u4e89\u519b\u65c5",
                "\u7384\u5e7b\u7cbe\u54c1",
                "\u6050\u6016\u60ca\u609a",
                "\u60ac\u7591\u63a8\u7406",
                "\u4e16\u754c\u540d\u8457",
                "\u5916\u56fd\u6587\u5b66",
                "\u6b66\u4fa0\u7ecf\u5178"
            ]
        }
    ],
    "yAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ],
    "title": [
        {
            "text": "\u5fae\u4fe1\u8bfb\u4e66\u5404\u7c7b\u4e66\u7c4d\u524d20\u5e73\u5747\u63a8\u8350\u5ea6\u67f1\u72b6\u56fe",
            "padding": 5,
            "itemGap": 10
        }
    ]
};
        chart_d13dde5deca9455783577e44e53b5511.setOption(option_d13dde5deca9455783577e44e53b5511);
    </script>
<br/>                <div id="d51eda8d9cca425d9fa77809515485d5" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_d51eda8d9cca425d9fa77809515485d5 = echarts.init(
            document.getElementById('d51eda8d9cca425d9fa77809515485d5'), 'white', {renderer: 'canvas'});
        var option_d51eda8d9cca425d9fa77809515485d5 = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "pink",
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "bar",
            "name": "\u5e73\u5747\u9605\u8bfb\u4eba\u6570",
            "legendHoverLink": true,
            "data": [
                2981,
                891,
                178,
                637,
                70,
                880,
                511,
                1230,
                1464,
                1022,
                1025
            ],
            "showBackground": false,
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        }
    ],
    "legend": [
        {
            "data": [
                "\u5e73\u5747\u9605\u8bfb\u4eba\u6570"
            ],
            "selected": {
                "\u5e73\u5747\u9605\u8bfb\u4eba\u6570": true
            },
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5
    },
    "xAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "data": [
                "\u793e\u4f1a\u5c0f\u8bf4",
                "\u60c5\u611f\u5c0f\u8bf4",
                "\u9752\u6625\u6587\u5b66",
                "\u79d1\u5e7b\u7ecf\u5178",
                "\u6218\u4e89\u519b\u65c5",
                "\u7384\u5e7b\u7cbe\u54c1",
                "\u6050\u6016\u60ca\u609a",
                "\u60ac\u7591\u63a8\u7406",
                "\u4e16\u754c\u540d\u8457",
                "\u5916\u56fd\u6587\u5b66",
                "\u6b66\u4fa0\u7ecf\u5178"
            ]
        }
    ],
    "yAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": false,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            }
        }
    ],
    "title": [
        {
            "text": "\u5fae\u4fe1\u8bfb\u4e66\u5404\u7c7b\u4e66\u7c4d\u524d20\u5e73\u5747\u9605\u8bfb\u4eba\u6570\u67f1\u72b6\u56fe",
            "padding": 5,
            "itemGap": 10
        }
    ]
};
        chart_d51eda8d9cca425d9fa77809515485d5.setOption(option_d51eda8d9cca425d9fa77809515485d5);
    </script>
<br/>                <div id="d39128130dfa42559482645f41f3543a" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_d39128130dfa42559482645f41f3543a = echarts.init(
            document.getElementById('d39128130dfa42559482645f41f3543a'), 'white', {renderer: 'canvas'});
        var option_d39128130dfa42559482645f41f3543a = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "pie",
            "clockwise": true,
            "data": [
                {
                    "name": "\u793e\u4f1a\u5c0f\u8bf4",
                    "value": 14
                },
                {
                    "name": "\u60c5\u611f\u5c0f\u8bf4",
                    "value": 4
                },
                {
                    "name": "\u9752\u6625\u6587\u5b66",
                    "value": 9
                },
                {
                    "name": "\u79d1\u5e7b\u7ecf\u5178",
                    "value": 8
                },
                {
                    "name": "\u6218\u4e89\u519b\u65c5",
                    "value": 11
                },
                {
                    "name": "\u7384\u5e7b\u7cbe\u54c1",
                    "value": 13
                },
                {
                    "name": "\u6050\u6016\u60ca\u609a",
                    "value": 2
                },
                {
                    "name": "\u60ac\u7591\u63a8\u7406",
                    "value": 9
                },
                {
                    "name": "\u4e16\u754c\u540d\u8457",
                    "value": 15
                },
                {
                    "name": "\u5916\u56fd\u6587\u5b66",
                    "value": 8
                },
                {
                    "name": "\u6b66\u4fa0\u7ecf\u5178",
                    "value": 8
                }
            ],
            "radius": [
                "0%",
                "75%"
            ],
            "center": [
                "50%",
                "50%"
            ],
            "label": {
                "show": true,
                "position": "top",
                "margin": 8
            }
        }
    ],
    "legend": [
        {
            "data": [
                "\u793e\u4f1a\u5c0f\u8bf4",
                "\u60c5\u611f\u5c0f\u8bf4",
                "\u9752\u6625\u6587\u5b66",
                "\u79d1\u5e7b\u7ecf\u5178",
                "\u6218\u4e89\u519b\u65c5",
                "\u7384\u5e7b\u7cbe\u54c1",
                "\u6050\u6016\u60ca\u609a",
                "\u60ac\u7591\u63a8\u7406",
                "\u4e16\u754c\u540d\u8457",
                "\u5916\u56fd\u6587\u5b66",
                "\u6b66\u4fa0\u7ecf\u5178"
            ],
            "selected": {},
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5
    },
    "title": [
        {
            "text": "\u5fae\u4fe1\u8bfb\u4e66\u4e2d\u6539\u7f16\u4e3a\u5f71\u89c6\u4f5c\u54c1\u7684\u4e66\u7c4d\u7c7b\u522b\u6bd4\u4f8b",
            "padding": 5,
            "itemGap": 10
        }
    ]
};
        chart_d39128130dfa42559482645f41f3543a.setOption(option_d39128130dfa42559482645f41f3543a);
    </script>
<br/>    </div>
    <script>
            $('#d13dde5deca9455783577e44e53b5511').resizable().draggable().css('border-style', 'dashed').css('border-width', '1px');$("#d13dde5deca9455783577e44e53b5511>div:nth-child(1)").width("100%").height("100%");
            new ResizeSensor(jQuery('#d13dde5deca9455783577e44e53b5511'), function() { chart_d13dde5deca9455783577e44e53b5511.resize()});
            $('#d51eda8d9cca425d9fa77809515485d5').resizable().draggable().css('border-style', 'dashed').css('border-width', '1px');$("#d51eda8d9cca425d9fa77809515485d5>div:nth-child(1)").width("100%").height("100%");
            new ResizeSensor(jQuery('#d51eda8d9cca425d9fa77809515485d5'), function() { chart_d51eda8d9cca425d9fa77809515485d5.resize()});
            $('#d39128130dfa42559482645f41f3543a').resizable().draggable().css('border-style', 'dashed').css('border-width', '1px');$("#d39128130dfa42559482645f41f3543a>div:nth-child(1)").width("100%").height("100%");
            new ResizeSensor(jQuery('#d39128130dfa42559482645f41f3543a'), function() { chart_d39128130dfa42559482645f41f3543a.resize()});
            var charts_id = ['d13dde5deca9455783577e44e53b5511','d51eda8d9cca425d9fa77809515485d5','d39128130dfa42559482645f41f3543a'];
function downloadCfg () {
    const fileName = 'chart_config.json'
    let downLink = document.createElement('a')
    downLink.download = fileName

    let result = []
    for(let i=0; i<charts_id.length; i++) {
        chart = $('#'+charts_id[i])
        result.push({
            cid: charts_id[i],
            width: chart.css("width"),
            height: chart.css("height"),
            top: chart.offset().top + "px",
            left: chart.offset().left + "px"
        })
    }

    let blob = new Blob([JSON.stringify(result)])
    downLink.href = URL.createObjectURL(blob)
    document.body.appendChild(downLink)
    downLink.click()
    document.body.removeChild(downLink)
}
    </script>
</body>
</html>
